<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddLawyerCols extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('customer', function(Blueprint $table){
			$table->string('address', 120)->nullable()->default('');//详细地址
		});
		Schema::table('lawyer', function(Blueprint $table){
			$table->string('address', 120)->nullable()->default('');//详细地址
			$table->string('company_name', 80)->nullable()->default('');//律所名称
			$table->string('position', 80)->nullable()->default('');//职位
			$table->text('introduce')->nullable();//个人简介
			$table->text('experience')->nullable();//工作经历
			$table->string('work_scope', 120)->nullable()->default('');//业务范围
            $table->integer('likes_count')->default(0);
			$table->integer('case_count')->default(0);
			$table->string('practice_period', 80)->nullable()->default('');//执业年限
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}
